<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>player demo</title>
<style type="text/css">

</style>
</head>
<body>

<pre>

	仅支持mp3格式音乐地址的flash播放器:
	MP3地址:<input type="text" name="url" id="url" value="{__STATIC__}/media/fqan.mp3" style="width:498px" />
	<input type="button" value="试听/关闭" style="background:;width:70px;" onclick="stMusic(url.value)" />
    <div id="playerSpan" style="display:none">
		&nbsp;<font color="#ff0000">MP3地址试听：</font>
		&nbsp;<span id="insetplayer" style="text-align:left;"></span>
    </div>
	<script type="text/javascript">
		function the(s){return document.getElementById(s);}
		function stMusic(url){
			if(the("playerSpan").style.display=="none"){
				var flashvar='';
				flashvar='{__STATIC__}/player/swf/kmp.swf?bg=0xCDDFF3&amp;leftbg=0x357DCE&amp;lefticon=0xF2F2F2&amp;rightbg=0x357DCE&amp;rightbghover=0x4499EE&amp;righticon=0xF2F2F2&amp;righticonhover=0xFFFFFF&amp;text=0x357DCE&amp;slider=0x357DCE&amp;track=0xFFFFFF&amp;border=0xFFFFFF&amp;loader=0x8EC2F4&amp;autostart=yes&amp;loop=no&amp;soundFile='+url;
				var ostr='';
				ostr+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10.3.181.14" height="24" width="290">';
				ostr+='<param name="movie" value="'+flashvar+'">';
				ostr+='<param name="quality" value="high">';
				ostr+='<param value="transparent" name="wmode">';
				ostr+='<embed src="'+flashvar+'"';
				ostr+=' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" height="24" width="290">';
				ostr+='</object>';
				the("insetplayer").innerHTML = ostr;
				the("playerSpan").style.display = "block";
			} else {
				the("insetplayer").innerHTML = "";
				the("playerSpan").style.display = "none";
			}
		}
	</script>

</pre>

</body>
</html>
